package com.hspedu.extend_;

public class Extend01 {
    public static void main(String[] args) {
        Pupil pupil = new Pupil();
        pupil.age = 10;
        pupil.name="小明";
        pupil.testing();
        pupil.setScore(60);
        pupil.showInfo();

        ExtendsDetail.Graduate graduate = new ExtendsDetail.Graduate();
        graduate.name="大明";
        graduate.age = 18;
        graduate.setScore(100);
        graduate.testing();
        graduate.showInfo();
    }
}
